package com.ants.logic.visualize.feign;

import com.ants.core.config.FeignHeaderInterceptor;
import com.ants.core.utils.Response;
import com.ants.logic.visualize.dto.DecreaseStorageDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 蚂蚁会花呗
 * @date 2021/9/9 15:39
 * 库存系统
 *
 */
@FeignClient(name = "${feign.client-service.eureka-storage}",configuration = FeignHeaderInterceptor.class)
public interface StorageFeignService {

    /**
     * 增减库存
     * @param decreaseStorageDto
     * @return
     */
    @PostMapping("/storage/storage/decreaseStorage")
    Response decreaseStorage(@RequestBody DecreaseStorageDto decreaseStorageDto);


}
